Apple interview question

Can you use python to write a upscale method from scratch.