Leap interview question

Simple dom manipulation, js basics, Low level design