Solution to lockerz test