Let's forget Snapchat.
If your camera doesn't work, read this support article:
Get help with the camera on your iPhone, iPad, or iPod touch - Apple Support
If the issue still persists, try to disable all your restrictions, restart your device, and test your camera.
If your camera still doesn't work, have your device inspected at the nearest Apple Store.
Regards
Giulio