Amazon interview question

how can fragmentation be calculated in Oracle database