Bank Rakyat interview question

Can you explain the difference between Method A and Method B?