HackerRank Algorithms-Weekly-Contest-9-2014 competition Sansa-and-XOR, Lexicographic-paths, Mixing-proteins