It's a flashlight that turns into a headlamp.
(It; 's; a flashlight that turns into a headlamp) (a flashlight; turns; into a headlamp)
It a flashlight
's turns
a flashlight that turns into a headlamp
into a headlamp