Infiny Interview Question

logical questions