This is little task from Mobile TeleSystems company Task: The task is to return "true" if all strings in an array form the same set of characters both horizontally and vertically. Such as: Array: ["abcd","bnrt","crmy","dtye"] a b c d b n r t c r m y d t y e Result: true