Ericsson Interview Question

A simple coding question where I was asked to print numbers in a specific range