Shree Partners Interview Question

basic question