CVENT Interview Question
Anonymous User
355

Someone explain this question to me.

Input to your program is list of Strings and output is list of characters
correspondingly to each String. Each String is independent of each other and order doesn't matter. You have to find out the pattern for choosing these fields and write a production ready code for it.

Input				   Output

CVENT				  C
ASTHA				  A
RITIKA				  I

I had to find the pattern based on which the Output is calculated.
These are the ones I came up with but it was not what the interviewer was expecting.

  1. 5th element from right
  2. First character which is smaller than the next element
Comments (1)