Wikiance interview question

Codeing problem and technical question