Lucid Software interview question

Asked to do multiple programming challenges.