Generate Samples from Truncated Normal Distribution | Google Interview Question