Hi Karthik,
1. Few things - but lets just talk about arrays:) ajax calls are asynchronous, when you assigning your temp array to observable one it's still empty - you can check with console log array.length just before assignment. The simplest solution don't use the temp array. This leads us to question number 2
2. Don't know how you tried to push elements to observable array so I can't tell you what was the issue, works for me:
https://jsfiddle.net/LdzouLmx/1/