Pergunta de entrevista da empresa Snapsheet

MySQL problem, API call problem, string duplicate character problem