Apple Interview Question

How does a pinhole camera work? What is its limitation?