Nimap infotech interview question

Missing Number ,Second maximum,Patterns Problem