eClerx interview question

Technical test had some programming question based on string/list methods.