Problems with my camera in the iPad Air

I have bought new iPad Air recently. But, I am facing issues with the camera in it. It is not working properly. When I select a camera application, it tries to load and take a long time and then it crashes. Sometimes the application will load and while taking the picture it is getting stuck. The camera lens looks fine, but not sure what is the problem. All other features in the iPad Air are working fine except the camera. Can somebody  advice on how to resolve this? Thanks in advance.
