Added a solution to Guards problem