Refme Interview Question

How to avoid blocking the UI Thread?