title: Finding the expansion of PI
body: <p>In an interview, I was asked to find a first 9 digit palindrome in an expansion of PI. And I had no idea as to how I should go for it. The question remained in my system throughout the interview and I couldn't properly answer the questions to follow.</p>
  
  <p>Whats the optimal way?</p>
  
  <p>EDIT:</p>
  
  <p>Finding palindrome is not difficult but how can I get the expansion of PI as much as I need. I have tried Math.PI, i have tried 22/7 but nothing gives me what I need.</p>