Samsung Electronics Interview Question

There were multiple rounds with 1 case to solve.