Nirmal interview question

From basic to high level