Broadcom Interview Question

some standard leet code Qs