Create challenge1.php

original answer with added comments for clarity