Element5 interview question

Aptitude problem on ages. HashMap implementation using oops concept in java?