Cost basis for foreign inheritance with remainderman interest

My grandmother passed away in India and in her probated (in India) will gave my mother life interest in her (my grandmother's) house. I received the remainderman interest. I was in the U.S. as an international student at the time and not a U.S. resident. I am now a US citizen and resident.

 

My mother has now passed away and the house in India has been sold.  For U.S. tax purposes, is the cost-basis for the house its value at the time my grandmother passed away or when my mother passed away ?

 

Both my mother and grandmother were Indian citizens and residents.