McD Tech Labs interview question

2 LC medium complexity problem