Scientists have found out that Mars once boasted an ocean with sandy beaches.