Battery Smart Interview Question

How show different component for different screen size?