ByteDance Interview Question

How to decouple an existing app?