McKinsey & Company Interview Question

Had two technical and 1 hackerrank round.