Turn off and on your phone continuously for 3-4times then open your camera if it works your are lucky if it don't I am sorry and do not install any apps using camera and uninstall camera using apps
The problem is present in both hardware and software.Take it to your nearest lenovo service center.They will change both the software and camera for free if the phone is under warranty.I recently changed my k5 plus camera