How to do this task?

this is the best way to do it.
a litle advice:
LDR is a anlog sensor, its means that u can have output between 0 and 1023. if u have 6 LEDs u need each LED to go on at 170 give or take (1023/6 = +/- 170)
good luck