Thanks
pizzaboy192 for replying
I purchased it like that.
I didnt put any unlock code, just put the SIM, changed the mode to GSM.UTMS and it started working.
But might be the seller here has unlocked it before selling becuase I have read somewhere that phone does not detected GSM SIMs until its unlocked.
On the other hand, when I select CDMA mode and put my CDMA SIM, it does not detect and hangs, so I feel like its still locked, but not sure