New MacBook Air Not Turning ON

I will buy a new laptop but not turning on . when connected the charger then only laptop will on once remove the charger laptop will automatically turn off.my still warranty only how claim the warranty .

Hi bro, do visit nearest apple service center for proper diagnosis. Take the charger cable also with you. They will check and proceed with warranty claim if its manufacturer defect or any problem that we are not responsible for.