ValueLabs Interview Question

*given a programming question* explain how do you solve the problem.