Mphasis Interview Question

Question based on logical ability.