Three Square Problem and Variations