Mphasis Interview Question

all was straight forward....