UBS | 28th oct 2025 | UBS, Recently Asked Online Assessments in 2026 | Product Defects

Question · Posted Apr 2026

Product Defects Problem Statement: A quality control agent inspects samples of finished products on the production line. Each sample consists of defective (1) and non-defective (0) products. These samples are arranged in a two-dimensional square matrix. The objective is to find the size of the largest square of defective products within this matrix. Example n * n = 5 * 5 matrix of product samples samples = [[1,1,1,1,1], [1,1,1,0,0], [1,1,1,0,0], [1,1,1,0,0], [1,1,1,1,1]] (Visualizing the matrix) Plaintext 1  1  1  1  ...

The full answer & interview discussion are available to premium members.

Log in Create a free account