Moon Active interview question

Questions regarding the given API