Synechron interview question

Logical and Scenario based