Fission Labs Interview Question

Based on assignment they given