Solution to lockerz test

The pull request has the solution to Lockerz coding test. Please review.