CRED interview question

Desig an image loading library