# Spot the bug: Android > One snippet. Find the bug, or prove there isn't one. Daily challenge: 2026-08-19 (UTC) ยท Mid-Level ```kotlin import androidx.lifecycle.ViewModel import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.launch class UserViewModel(private val repository: UserRepository) : ViewModel() { private val _user = MutableStateFlow(null) val user: StateFlow = _user.asStateFlow() fun loadUser(id: String) { GlobalScope.launch { _user.value = repository.fetchUser(id) } } } ``` ## Your verdict - Security flaw - Logic bug - Code style - No issue One attempt per day. The answer shows up right after. --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/en/daily/android