Pergunta de entrevista da empresa Hyperface

Sort the array according to the timestamps. Group anagram from strings.