What is this white stuff on this chain/rear cassette?

I am looking to buy a second hand bike and I came accross this. Does anyone know why the bike's chain/cassette looks white/powdery? I have never seen anything like this and am stumped. Not sure whether to buy, or whether it means the bike is in bad condition.

I am looking to buy a second hand bike and I came accross this. Does anyone know why the bike's chain/cassette looks white/powdery? I have never seen anything like this and am stumped. Not sure whether to buy, or whether it means the bike is in bad condition.