Before and after puzzle hackerrank solution. Before and After Puzzle in Python, Java, C++ and mo...