NVIDIA interview question

Solve Buffon's needle problem analytically